package com.zhentao.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhentao.model.entity.system.SysMenu;

import java.util.List;

/**
* @author 懒阳阳
* @description 针对表【sys_menu(菜单表)】的数据库操作Mapper
* @createDate 2025-02-08 14:45:04
* @Entity com.zhentao.domain.SysMenu
*/
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    List<SysMenu> selectListByUserId(Long userId);

    List<SysMenu> selectAll();

    void saveMenu(SysMenu sysMenu);

    void updateMenuById(SysMenu sysMenu);

    int countByParentId(Integer id);

    void removeMenuById(Integer id);
}




